package com.bds.btcdc.web.model;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.math.BigDecimal;

/**
 * Created by DongChenchen on 2018/5/7 0007
 * 策略设置（一对一）
 * 一个用户对应 多个货币固定值
 * 其他参数，一对一
 */
@Table("t_strategy_one")
public class StrategyOneArgs {
    @Id
    private Long id;
    //用户ID
    @Column
    private Long user_id;
    //回购策略设置
    @Column
    private BigDecimal order_avg_price_threshold;//上涨阀值(交易记录价格平均值 阀值)
    //涨跌判定设置
    @Column
    private Double thld_start;//涨跌上界(价格处于平稳的阀值，开始)
    @Column
    private Double thld_end;//涨跌下界(价格处于平稳的阀值，结束)
    //吃单判定设置
    @Column
    private BigDecimal price_change_rate_threshold;//价格波动率阀值
    @Column
    private BigDecimal disk_yield_threshold;//盘口收益率阀值
    @Column
    private BigDecimal expected_yield_threshold;//预期收益率阀值


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public BigDecimal getOrder_avg_price_threshold() {
        return order_avg_price_threshold;
    }

    public void setOrder_avg_price_threshold(BigDecimal order_avg_price_threshold) {
        this.order_avg_price_threshold = order_avg_price_threshold;
    }

    public Double getThld_start() {
        return thld_start;
    }

    public void setThld_start(Double thld_start) {
        this.thld_start = thld_start;
    }

    public Double getThld_end() {
        return thld_end;
    }

    public void setThld_end(Double thld_end) {
        this.thld_end = thld_end;
    }

    public BigDecimal getPrice_change_rate_threshold() {
        return price_change_rate_threshold;
    }

    public void setPrice_change_rate_threshold(BigDecimal price_change_rate_threshold) {
        this.price_change_rate_threshold = price_change_rate_threshold;
    }

    public BigDecimal getDisk_yield_threshold() {
        return disk_yield_threshold;
    }

    public void setDisk_yield_threshold(BigDecimal disk_yield_threshold) {
        this.disk_yield_threshold = disk_yield_threshold;
    }

    public BigDecimal getExpected_yield_threshold() {
        return expected_yield_threshold;
    }

    public void setExpected_yield_threshold(BigDecimal expected_yield_threshold) {
        this.expected_yield_threshold = expected_yield_threshold;
    }
}
